From: awilliam@xenbuild.aw Date: Wed, 17 May 2006 21:52:10 +0000 (-0600) Subject: [IA64] Fix VTi domain destroy bug X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~16060 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=4a0b492a66c330e8cae33ea144c0dd045aee8290;p=xen.git [IA64] Fix VTi domain destroy bug This patch will fix VTi domain destroy bug. On tip, we couldn't destroy VTi successfully at times. It was caused by misusing vhpt base address for VTi domain in vhpt_flush function. Signed-off-by : Zhang xiantao --- diff --git a/xen/arch/ia64/xen/vhpt.c b/xen/arch/ia64/xen/vhpt.c index 59e6199a7f..f54e2a832e 100644 --- a/xen/arch/ia64/xen/vhpt.c +++ b/xen/arch/ia64/xen/vhpt.c @@ -25,7 +25,7 @@ DEFINE_PER_CPU (unsigned long, vhpt_pend); static void vhpt_flush(void) { - struct vhpt_lf_entry *v = (struct vhpt_lf_entry *)VHPT_ADDR; + struct vhpt_lf_entry *v = __va(__ia64_per_cpu_var(vhpt_paddr)); int i; for (i = 0; i < VHPT_NUM_ENTRIES; i++, v++)